import { Service } from 'boot/axios'


type OssConfigType = {
  accessKeyId: string
  securityToken: string
  bucketName: string
  path: string
  accessKeySecret: string
  endpoint: string
  bizType: string
  expiration: string
  hostUrl: string
}

// 获取oss 上传参数
export function getConfigInfoApi <T = OssConfigType>(data: any) {
  return Service<T>({
    url: 'oss/getConfigInfo',
    method: 'post',
    data
  })
}
